package com.paco.study.cloud.user.service;

import javax.servlet.http.HttpServletResponse;

public interface TokenService {
    String searchEmailByCode(String token);

    Boolean isRegistered(String email);

    String login(String email, String password, HttpServletResponse response);

    Boolean register(String token, String password, String code, HttpServletResponse response);

    void writeSession(HttpServletResponse response, String token);
}
